package com.job.gaoyue.day0705;

import com.job.blossom.STN0705;
import com.job.zhaokaiqiang.Student;
import sun.applet.Main;

/**
 * @author ${高某}
 * @version 1.0
 * @since 2022-07-07 10:18:38
 */
public class homework {
    /**
     * 作业1
     * STN
     */
    /*
    public static void main(String[] args) {
        homework.stn(4, 7, 9);
    }
    public static void stn(int s, int t, int n) {
        int num = s;
        int[][] arr1 = new int[n][n];
        for (int col = n - 1; col >= 0; col--) {
            for (int row = 0; row <= col; row++) {
                arr1[row][col] = num;
                num++;
                num = num > t+1 ? 1 : num;
            }
        }
        for (int row = 0; row < n; row++) {
            for (int col = 0; col < n; col++) {
                if (row>col) {
                    System.out.print("\t");
                } else {
                    System.out.print(arr1[row][col] + "\t");
                }
            }
            System.out.println();
        }
    }
    */

    /**
     * 作业2
     * 有参无参
     */
    /*public static void main(String[] args) {

        Student0705 girl1 = new Student0705();
        girl1.weight = 60;
        girl1.height = 160;
        girl1.name = "李蕾";

        Student0705 boy1= new Student0705(170, 65, 19, "篮球", "李华");


    }
    */

    /**
     * 作业3
     * 循环练习 买鸡
     */
    /*public static void main(String[] args) {
        int num=0;
        for (int i=0;i<=33;i++){
            for (int j=0;j<=20;j++){
                for (int t=0;t<=100;t++){
                    if (i*3+j*5+t*1==100){
                        if (i+j+t*3==100){
                            num=num+1;
                        }
                    }
                }
            }
        }
        System.out.println("方法总数是"+num);
    }
    */

    /**
     * 作业4
     * 数字组成练习
     */
    /*public static void main(String[] args) {
        int num = 0,sum=0;
        for (int i = 1; i <= 4; i++) {
            for (int j = 1; j <= 4; j++) {
                for (int k = 1; k <= 4; k++) {
                    if ((i != j) && (i != k) &&(j != k)){
                        sum = i * 100 + j * 10 + k;
                        num++;
                        System.out.println(sum + "\t");
                    }
                }
            }
        }
        System.out.println("这样的数一共有"+num+"个");
    }
    */
}